'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    await queryInterface.bulkInsert('Chapters', [
      {
        title: '第一章',
        content: '第一章内容',
        courseId: 1,
        videoUrl: 'https://www.baidu.com',
        rank: 1,
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        title: '第二章',
        content: '第二章内容',
        courseId: 1,
        videoUrl: 'https://www.baidu.com',
        rank: 2,
        createdAt: new Date(),
        updatedAt: new Date()
      }
    ]);
  },

  async down (queryInterface, Sequelize) {
    await queryInterface.bulkDelete('Chapters', null, {});
  }
};
